﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Print.aspx.cs" Inherits="UI.system.Print" %>
<%@ Import Namespace="Model" %>
<%@ Import Namespace="Common" %>
<%@ Import Namespace="DAL" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>打印信息</title>
    <script src="/js/jquery.min.js"></script>
    <script src="/system/layui/layui.js"></script>
    <script src="/system/layui/lay/modules/laydate.js"></script>

    <script src="/system/Lodop/LodopFuncs.js" type="text/javascript"></script>

    <link rel="stylesheet" href="/system/layui/css/layui.css">
    
</head>
<body>
    <style>
        table,table td,table th{border:1px solid #cdcdcd;border-collapse:collapse;}
        .delete{ display:none;}
        .upload_img{ padding-top:8px;}
        .main div{ float:left;}
        .main div img{ height:80px; width:80px;}
        
    </style>
    <div id="lists" style=" display:none;">
        <%=info.prints%>
    </div>    
    <script>
        window.onload = function () {
            $("table").attr("border","0");
            //$("table tr").attr("style", "border-bottom:1px solid red;");

            var LODOP = getLodop();
            LODOP.PRINT_INIT("打印控件功能演示_Lodop功能_右边距下边距设置2");
            var strHTML = "<body>" + document.getElementById("lists").innerHTML + "</body>";
            //var strHTML = "<body>" + html + "</body>";
            LODOP.ADD_PRINT_HTM("5mm", 34, "RightMargin:0.9cm", "BottomMargin:9mm", strHTML);
            LODOP.PREVIEW();
        }  

       
</script>
</body>
</html>
